package model

import "time"

type AfterSaleOrder struct {
	AfterSaleId     int32     `gorm:"column:after_sale_id;type:int;primaryKey;not null;" json:"after_sale_id"`
	OrderId         int32     `gorm:"column:order_id;type:int;default:NULL;" json:"order_id"`
	UserId          int32     `gorm:"column:user_id;type:int;default:NULL;" json:"user_id"`
	Reason          string    `gorm:"column:reason;type:varchar(255);default:NULL;" json:"reason"`
	ProofUrl        string    `gorm:"column:proof_url;type:varchar(255);default:NULL;" json:"proof_url"`
	AfterSaleStatus string    `gorm:"column:after_sale_status;type:varchar(10);default:NULL;" json:"after_sale_status"`
	ApplyTime       time.Time `gorm:"column:apply_time;type:datetime(3);default:NULL;" json:"apply_time"`
	AuditTime       time.Time `gorm:"column:audit_time;type:datetime(3);default:NULL;" json:"audit_time"`
}

func (AfterSaleOrder) TableName() string {
	return "after_sale_order"
}
